package com.yike.order.service;


import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.order.entity.Order;
import com.yike.order.param.*;
import com.yike.order.vo.*;

import java.text.ParseException;

/**
 * 平台订单
 *
 * @author Sakura
 * @since 2024-11-01
 */
public interface PlatformOrderService extends BaseService<Order> {

    Paging<PlatformOrderVo> getOrderList(PlatformOrderPageParam platformOrderPageParam) throws Exception;

    PlatformOrderInfoVo getOrderInfo(String orderNo);

    /**
     * 退款
     *
     * @param refundOrderParam
     * @return
     * @throws ParseException
     */
    boolean refund(RefundOrderParam refundOrderParam) throws ParseException;

    RefundInfoVo getRefundInfo(String refundNo);

    Integer queryStatus(String orderNo) throws Exception;

}
